/*
 * CodeSaveCommand.java
 *
 * Created on 2006년 3월 29일 (수), 오후 4:11
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package com.qbooks.app.board;

import java.util.*;





import javax.servlet.*;
import javax.servlet.http.*;

import org.json.simple.JSONObject;

import com.zll.framework.model.HashBox;
import com.zll.framework.model.HashList;
import com.zll.framework.servlet.Command;
import com.zll.framework.util.StringUtil;
import com.qbooks.app.AppDAO;
import com.qbooks.board.BoardDAO;
import com.qbooks.common.CommonUtil;





/**
 *
 * @author eastar
 */
public class WordListCommand implements Command
{
	
    public String execute(HttpServletRequest  request, HttpServletResponse response)
    throws Exception
    {
    	String os				= (String)request.getAttribute("os");
    	String board_id			= StringUtil.nvl(request.getParameter("board_id"));
    	String curr_page 		= StringUtil.nvl(request.getParameter("curr_page"), "1");


    	BoardDAO boardDAO 		= new BoardDAO();
    	
    	HashMap infos = new HashMap();
    	infos.put("board_id",		board_id);
    	infos.put("curr_page",		curr_page);


		if ("android".equals(os)) {
			
		}
		else if ("ios".equals(os)) {
			
		}
		
		return "/m/member/wordList.jsp";

//		request.setAttribute("boardInfo", boardDAO.selectBoardInfo(infos));
//		request.setAttribute("wordList", boardDAO.selectWordList(infos));
//		request.setAttribute("pagingHtml", boardDAO.getPageHtmlMobile(infos, "./wordList.app?board_id="+board_id));
//		
//    	return "/app/board/wordList.jsp";
    }
}
